{% extends "OspHomeBundle::layout.html.twig" %}

{% block OspHome_body %}
	<h3>{{product.libelle}}</h3>

	<div style="display: inline-block">

	
	<table  class="table table-striped">
				<tr>
						<thead>
							<tr>
								<td rowspan=6><img src="{{asset('img/')}}{{ product.photo }}" alt={{product.photo}} height="400" width="400" /></td>
							</tr>	
							<tr>
								<td><strong>Catégorie : </strong>{{product.categorie.libelle}}</td>
							</tr>
							<tr>
								<td><strong>Lien : </strong>{{product.lien}}</td>
							</tr>
							<tr>
								<td><strong>Poids : </strong>{{product.poids ~ 'kg'}}</td>
							</tr>
							<tr>
								<td><strong>Prix : </strong>{{product.prix ~ '€'}}</td>
							</tr>
							<tr>
								<td>
									<a href="{{ path('osp_home_addProduct', {'id' : product.id}) }}">
										<img src="{{ asset('img/addShoppingCart.png') }}" alt="Ajouter au panier" height="50" width="50" />
									</a>
								</td>
							</tr>
							
						</thead>
				</tr>
				
	</table>
	{{product.description}}
	</div>

{% endblock %}